<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<html>
<head>
<sj:head jqueryui="true" jquerytheme="redmond"></sj:head>
<script type="text/javascript">
	function okButton() {
		alert('OK Button pressed!');
	};

	function cancelButton() {
		alert('Cancel Button pressed!');
		$('#mybuttondialog').dialog('close');
	};
	
	function onClickSave(){
		window.location="vSaveTeam.action";
	}
	function onClickBack(){
		window.location="vBackTeam.action";
	}
	$.subscribe('tabcomplete', function(event, ui) {
		$('#infopanel').html(
				'<strong>Completed request with Status '
						+ event.originalEvent.status
						+ '.</strong><br/>Status: '
						+ event.originalEvent.request.status);
	});
</script>
</head>
<body>
	<h3>Team Details</h3>
	<s:form action="organisationDetail4Actions" theme="simple">
		<table style="text-align:right;">
			<tr>
				<td><sj:a button="true"   formids="teamForm" onclick="onClickSave()">Save</sj:a></td>
				<td><sj:a button="true" onclick="onClickBack()">Back</sj:a></td>
			</tr>
		</table>
		<br>
		<br>
		<fieldset>
			<sj:tabbedpanel id="remotetabs" spinner="Please wait ..."
				animate="true" onCompleteTopics="tabcomplete"
				onChangeTopics="tabchange">
				<sj:tab id="tab1" target="tone" label="Details" />
				<div id="tone">
					<s:form id="teamForm" action="vSaveTeam" theme="simple">
						<table>
							<tr>
								<td>Team Name<font color="red">*</font></td>
								<td><s:textfield name="teamName"></s:textfield></td>
								<td>Type Of Bussiness</td>
								<td><s:textfield name="typeBussiness"></s:textfield><A
									HREF="lookupOrganisationDetail"><font color="blue">Lookup</font></A></td>
							</tr>

							<tr>
								<td>Team <br>Short Description<font color="red">*</font></td>
								<td><s:textarea name="shortDescription" cols="17" rows="2"></s:textarea></td>
								<td>SIC Code</td>
								<td><s:textfield name="sicCode"></s:textfield></td>
							</tr>

							<tr>
								<td>Lead Contact<br></td>
								<td><s:textfield name="leadContact"></s:textfield> <A
									HREF="lookupOrganisationDetail"><font color="blue">Lookup</font></A></td>
								<td>Team Full Description</td>
								<td><s:textarea name="teamDescription" cols="17" rows="2"></s:textarea></td>
							</tr>

							<tr>
								<td>Copy Address from Organisation</td>
								<td><s:checkbox name="copyOrganisation"></s:checkbox>Organisation
								</td>
								<td><s:checkbox name="copyParent"></s:checkbox>Parent</td>
							</tr>
							<tr>
								<td>Address Line 1</td>
								<td><s:textfield name="addressLine1"></s:textfield></td>
								<td>Phone Number</td>
								<td><s:textfield name="phoneNumber"></s:textfield></td>
							</tr>
							<tr>
								<td>Address Line 2</td>
								<td><s:textfield name="addressLine2"></s:textfield></td>
								<td>Fax</td>
								<td><s:textfield name="fax"></s:textfield></td>
							</tr>
							<tr>
								<td>Address Line 3</td>
								<td><s:textfield name="addressLine3"></s:textfield></td>
								<td>Email</td>
								<td><s:textfield name="email"></s:textfield></td>
							</tr>
							<tr>
								<td>Post Code</td>
								<td><s:textfield name="postCode"></s:textfield><A
									HREF="lookupOrganisationDetail"><font color="blue">Lookup</font></A></td>
								<td>Web Address</td>
								<td><s:textfield name="webAddress"></s:textfield></td>
							</tr>
							<tr>
								<td>Town/Village/City</td>
								<td><s:textfield name="townVillage"></s:textfield></td>

							</tr>
							<tr>
								<td>County</td>
								<td><s:textfield name="county"></s:textfield></td>

							</tr>
							<tr>
								<td>Nation/Country</td>
								<td><s:select
										list="#{'01':'Czech','02':'French','03':'Viet Nam','04':'America'}"
										name="nation"></s:select></td>
							</tr>

						</table>
					</s:form>
				</div>

			</sj:tabbedpanel>
		</fieldset>
	</s:form>
</body>
</html>